const initialState = {
  channels: [],
  list: [],
  total:[]
}
export const details = (state = initialState, action) => {
  if (action.type === 'details/getdetails') {
    return {
      ...state,
      channels:action.payload
    }
  }
  if (action.type === 'details/queryParams') {
    return {
      ...state,
      ...action.payload
    }
  }
  return state
}